import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Echarts from 'echarts'
import VueCharts from 'vue-echarts'
import './plugins/element.js'
import './plugins/vcharts.js'
import './assets/styles/common.css'

Vue.config.productionTip = false
Vue.prototype.$echarts = Echarts

router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title
  }
  next()
})
Vue.component('v-chart', VueCharts)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
